//
//  order.m
//  Dormitory2404
//
//  Created by apple on 2017/12/20.
//  Copyright © 2017年 Hainan Suyun network technology co. LTD. All rights reserved.
//

#import "order.h"

@implementation order

- (void)encodeWithCoder:(NSCoder *)encoder{
    [encoder encodeObject:self.price forKey:@"price"];
    [encoder encodeObject:self.content forKey:@"content"];
    [encoder encodeObject:self.name forKey:@"name"];
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder
{
    self = [super init];
    if (self)
    {
        self.price     = [aDecoder decodeObjectForKey:@"price"];
        self.content     = [aDecoder decodeObjectForKey:@"content"];
        self.name     = [aDecoder decodeObjectForKey:@"name"];
    }
    return self;
}
@end
